package com.example.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.domain.po.Account;
import com.example.springboot.domain.po.Grade;
import com.example.springboot.domain.po.User;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @Author：伐柯梦姝
 * @Package：com.example.springboot.service
 * @Project：springboot
 * @name：UserService
 * @Date：2025/2/4 21:13
 * @Filename：UserService
 * @for:
 */
public interface UserService extends IService<User> {
    List<User> getAll();

    User userRegister(User user);

    User userLogin(User user);

    User findById(Integer id);

    void exportById(Integer id, HttpServletResponse response) throws IOException;


    void deleteById(Integer id);

    void update(User user);

    PageInfo<User> findPage(User search, Integer pageNum, Integer pageSize);

    User userRole(User user);

    void deleteBatch(List<User> list);

    User selectById(Integer id);

    List<User> findByCondition(User user);

    void export(String gradeName, String username, HttpServletResponse response) throws IOException;
}
